package org.example.contain;

import java.util.Collection;
import java.util.Iterator;
import java.util.List;

/**
 * @author Yyming
 * @version 10.0
 * Created by Yyming on 2020/10/22
 */
public class SynHelp<T> implements Collection<T> {
    private final List<T> list;

    public SynHelp(List<T> list) {
        this.list = list;
    }

    @Override
    public boolean add(T t) {
        synchronized (list) {
            return list.add(t);
        }
    }















    @Override
    public int size() {
        return 0;
    }

    @Override
    public boolean isEmpty() {
        return false;
    }

    @Override
    public boolean contains(Object o) {
        return false;
    }

    @Override
    public Iterator<T> iterator() {
        return null;
    }

    @Override
    public Object[] toArray() {
        return new Object[0];
    }

    @Override
    public <T1> T1[] toArray(T1[] a) {
        return null;
    }



    @Override
    public boolean remove(Object o) {
        return false;
    }

    @Override
    public boolean containsAll(Collection<?> c) {
        return false;
    }

    @Override
    public boolean addAll(Collection<? extends T> c) {
        return false;
    }

    @Override
    public boolean removeAll(Collection<?> c) {
        return false;
    }

    @Override
    public boolean retainAll(Collection<?> c) {
        return false;
    }

    @Override
    public void clear() {

    }
}
